home *** CD-ROM | disk | FTP | other *** search
- /* param none */
-
- options results
-
- address 'rexx_TVPaint'
-
- tv_request 'This program will compute during 10 minutes. Continue ?'
- if (result=0) then exit
- tv_request 'Ready to wait 10 minutes ? Are you sure ?'
- if (result=0) then exit
-
-
-
- /* This program is just an experience. A slow game. George */
- /* is NOT really designed to run this sort of exercise... */
-
-
-
- tv_SetDrawMode Color
- tv_setBpen 0 0 0 255
- tv_clear
- tv_Pen 0
-
- r=9
- a=-1.5
- b=-2
- c=2.5
- d=2
-
-
- tv_menuoff
- tv_mouseoff
- tv_LockUser
-
- maxx=30
- maxy=30
-
- n=1
- do m=1 to 5
-
- zz=n*9
-
- do k=zz to zz+maxx-2
- do l=zz to zz+maxy-2
-
- x=a+((c-a)*k)/(maxx*n)
- y=b+((d-b)*l)/(maxy*n)
- color=23
- u=0
- v=0
- do until ((u*u+v*v>r)|(color>247))
- z=u*u-v*v-x
- w=2*u*v-y
- u=z
- v=w
- color=color+7
- end
- tv_writepixel k-zz+(maxx*m) l-zz+(maxy*m) 255 color 0 255
- end
- end
- n=n*2
- end
- tv_menuon
- tv_UnLockUser
-
- tv_warn Done
-